export default (numberPx: number, dot) => {
  let reference_width = 1920;
  // let num_vw = (numberPx / reference_width) * 100;
  // num_vw = num_vw + (numberPx / reference_width) * num_vw;
  let num_vw = (numberPx / reference_width) * 100;
  if (dot) {
    return num_vw.toFixed(dot) + "vw";
  }
  return num_vw.toFixed(5) + "vw";
};

